package demo1;

public class Test3 {
    public int data1 = 1;

    public void test() {
        class A {
            //局部内部类
            public int data2 = 2;
            public void test() {
                System.out.println("我是局部内部类");
            }
        }
        A a = new A();
        a.test();
    }

    public static void main(String[] args) {
        Test3 test3 = new Test3();
        test3.test();
    }
}
